home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / Developer Essentials May91 / MPW Interfaces & Libraries 3.2 / AIncludes / Traps.a < prev    next >
Encoding:
Text File  |  1991-04-17  |  49.5 KB  |  2,340 lines  |  [TEXT/MPS ]

  1. ; Version: 3.29
  2. ; Created: Friday, October 20, 1989 at 10:06:13 PM
  3. ;
  4. ; File: Traps.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1990
  8. ; All Rights Reserved.
  9. ;
  10. ;___________________________________________________________________________
  11.  
  12.     IF &TYPE('__IncludingTraps__') = 'UNDEFINED' THEN
  13. __IncludingTraps__    SET    1
  14.  
  15. ; Equates for setting trap option bits
  16.  
  17. ; for Device and File Manager routines
  18.  
  19. immed            EQU         $200                    ; execute immediately, bypass I/O queue
  20. async            EQU         $400                    ; asynchronous, don't wait for completion
  21.  
  22. ; for Memory Manager routines
  23.  
  24. clear            EQU         $200
  25. sys             EQU         $400
  26.  
  27. ; for string routines
  28.  
  29. marks            EQU         $200                    ; set to ignore/strip diacriticals
  30. case            EQU         $400                    ; set for case sensitivity
  31.  
  32. ; for all Toolbox routines
  33.  
  34. autoPop         EQU         $400                    ; set to pop an extra return address
  35.  
  36.  
  37. ; for Get/Set & NGet/NSet TrapAddress
  38.  
  39. newTool           EQU         $600                      ; Toolbox trap, under new ordering
  40. newOS             EQU         $200                      ; OS trap, under new ordering
  41.  
  42. ; for HFS routines
  43.  
  44. newHFS            EQU         $200
  45.  
  46. ; Dispatch Macros (compatible with DispatchHelper macro)
  47. ;
  48. ; DoDispatch TrapRef,Selector[,ParamWords]
  49.  
  50. ;    Purpose:    Sets up for a call to a trap that is a dispatching trap.
  51. ;
  52. ;    Inputs:        TrapRef -         the dispatching trap number (i.e. $A8xx or _MyTrap)
  53. ;                Selector -         the trap selector number (-128 thru 127 only!)
  54. ;                [,ParamWords] - (optional) number of WORDS of parameters this call takes
  55. ;
  56. ;    Outputs:    The output of this macro depends on its input, however, in general it produces:
  57. ;                        MOVEQ    #Selector, D0
  58. ;                        _MyTrap
  59. ;                or
  60. ;                        MOVEQ    #Selector, D0
  61. ;                        DC.W    $AFFF                ; No opword is defined for $AFFF yet
  62. ;
  63. ;    WARNING:
  64. ;                Note: If you do not specify “ParamWords”, it assumes that:
  65. ;                    The routine you are dispatching to is a procedure
  66. ;                        --- AND ---
  67. ;                    If you are using the DispatchHelper macro, you must insure
  68. ;                    that this routine __NEVER__ goes away.
  69. ;                    (The helper will assume that this “procedure” returns an OSErr
  70. ;                    and will mess up your stack for you, free of charge).
  71.  
  72.         MACRO
  73.         DoDispatch &trapRef,&selector,¶mWords
  74.             lcla &selectorNum
  75.             lcla ¶mCount
  76.  
  77.             &selectorNum: seta &eval(&selector)
  78.             if (&selectorNum > 127) OR (&selectorNum < -128) then
  79.                 aerror &CONCAT('Selector number for ', &TrapRef, ' “',&selector, '” is outside the range -128 to 127')
  80.                 exitm
  81.             endif
  82.  
  83.             if (¶mWords = '') then
  84.                 ¶mCount: seta 0                    ; Procedure call if ¶mWords was not specified
  85.             else
  86.                 ¶mCount: seta &eval(¶mWords)
  87.             endif
  88.             if (¶mCount < 0) OR (¶mCount > 255) then
  89.                 aerror &CONCAT('Parameter words for ', &trapRef, ' “',¶mWords, '” is outside the range 0-255')
  90.                 exitm
  91.             endif
  92.  
  93.             if ¶mCount = 0 then
  94.                 moveq #&selectorNum, D0                ; move the selector into D0 quickly
  95.             else
  96.                 ¶mCount: seta (¶mCount << 8) + (&selectorNum AND $ff)
  97.                 move.w #¶mCount, D0                ; move the selector into D0
  98.             endif
  99.  
  100.             if &type(&trapRef) ≠ 'OPWORD' then
  101.                 dc.w &trapRef
  102.                 exitm
  103.             endif
  104.             &trapRef
  105.         ENDM
  106.  
  107. ; QuickDraw
  108.  
  109. _CopyMask         OPWORD      $A817
  110. _MeasureText      OPWORD      $A837
  111. _GetMaskTable     OPWORD      $A836
  112. _CalcMask         OPWORD      $A838
  113. _SeedFill         OPWORD      $A839
  114. _InitCursor       OPWORD      $A850
  115. _SetCursor        OPWORD      $A851
  116. _HideCursor       OPWORD      $A852
  117. _ShowCursor       OPWORD      $A853
  118. _ShieldCursor     OPWORD      $A855
  119. _ObscureCursor    OPWORD      $A856
  120. _BitAnd           OPWORD      $A858
  121. _BitXOr           OPWORD      $A859
  122. _BitNot           OPWORD      $A85A
  123. _BitOr            OPWORD      $A85B
  124. _BitShift         OPWORD      $A85C
  125. _BitTst           OPWORD      $A85D
  126. _BitSet           OPWORD      $A85E
  127. _BitClr           OPWORD      $A85F
  128. _Random           OPWORD      $A861
  129. _ForeColor        OPWORD      $A862
  130. _BackColor        OPWORD      $A863
  131. _ColorBit         OPWORD      $A864
  132. _GetPixel         OPWORD      $A865
  133. _StuffHex         OPWORD      $A866
  134. _LongMul          OPWORD      $A867
  135. _FixMul           OPWORD      $A868
  136. _FixRatio         OPWORD      $A869
  137. _HiWord           OPWORD      $A86A
  138. _LoWord           OPWORD      $A86B
  139. _FixRound         OPWORD      $A86C
  140. _InitPort         OPWORD      $A86D
  141. _InitGraf         OPWORD      $A86E
  142. _OpenPort         OPWORD      $A86F
  143. _LocalToGlobal    OPWORD      $A870
  144. _GlobalToLocal    OPWORD      $A871
  145. _GrafDevice       OPWORD      $A872
  146. _SetPort          OPWORD      $A873
  147. _GetPort          OPWORD      $A874
  148. _SetPBits         OPWORD      $A875
  149. _PortSize         OPWORD      $A876
  150. _MovePortTo       OPWORD      $A877
  151. _SetOrigin        OPWORD      $A878
  152. _SetClip          OPWORD      $A879
  153. _GetClip          OPWORD      $A87A
  154. _ClipRect         OPWORD      $A87B
  155. _BackPat          OPWORD      $A87C
  156. _ClosePort        OPWORD      $A87D
  157. _AddPt            OPWORD      $A87E
  158. _SubPt            OPWORD      $A87F
  159. _SetPt            OPWORD      $A880
  160. _EqualPt          OPWORD      $A881
  161. _StdText          OPWORD      $A882
  162. _DrawChar         OPWORD      $A883
  163. _DrawString       OPWORD      $A884
  164. _DrawText         OPWORD      $A885
  165. _TextWidth        OPWORD      $A886
  166. _TextFont         OPWORD      $A887
  167. _TextFace         OPWORD      $A888
  168. _TextMode         OPWORD      $A889
  169. _TextSize         OPWORD      $A88A
  170. _GetFontInfo      OPWORD      $A88B
  171. _StringWidth      OPWORD      $A88C
  172. _CharWidth        OPWORD      $A88D
  173. _SpaceExtra       OPWORD      $A88E
  174. _StdLine          OPWORD      $A890
  175. _LineTo           OPWORD      $A891
  176. _Line             OPWORD      $A892
  177. _MoveTo           OPWORD      $A893
  178. _Move             OPWORD      $A894
  179. _ShutDown         OPWORD      $A895
  180. _HidePen          OPWORD      $A896
  181. _ShowPen          OPWORD      $A897
  182. _GetPenState      OPWORD      $A898
  183. _SetPenState      OPWORD      $A899
  184. _GetPen           OPWORD      $A89A
  185. _PenSize          OPWORD      $A89B
  186. _PenMode          OPWORD      $A89C
  187. _PenPat           OPWORD      $A89D
  188. _PenNormal        OPWORD      $A89E
  189. _Unimplemented    OPWORD      $A89F
  190. _StdRect          OPWORD      $A8A0
  191. _FrameRect        OPWORD      $A8A1
  192. _PaintRect        OPWORD      $A8A2
  193. _EraseRect        OPWORD      $A8A3
  194. _InverRect        OPWORD      $A8A4
  195. _FillRect         OPWORD      $A8A5
  196. _EqualRect        OPWORD      $A8A6
  197. _SetRect          OPWORD      $A8A7
  198. _OffsetRect       OPWORD      $A8A8
  199. _InsetRect        OPWORD      $A8A9
  200. _SectRect         OPWORD      $A8AA
  201. _UnionRect        OPWORD      $A8AB
  202. _Pt2Rect          OPWORD      $A8AC
  203. _PtInRect         OPWORD      $A8AD
  204. _EmptyRect        OPWORD      $A8AE
  205. _StdRRect         OPWORD      $A8AF
  206. _FrameRoundRect    OPWORD      $A8B0
  207. _PaintRoundRect    OPWORD      $A8B1
  208. _EraseRoundRect    OPWORD      $A8B2
  209. _InverRoundRect    OPWORD      $A8B3
  210. _FillRoundRect    OPWORD      $A8B4
  211. _StdOval          OPWORD      $A8B6
  212. _FrameOval        OPWORD      $A8B7
  213. _PaintOval        OPWORD      $A8B8
  214. _EraseOval        OPWORD      $A8B9
  215. _InvertOval       OPWORD      $A8BA
  216. _FillOval         OPWORD      $A8BB
  217. _SlopeFromAngle    OPWORD      $A8BC
  218. _StdArc           OPWORD      $A8BD
  219. _FrameArc         OPWORD      $A8BE
  220. _PaintArc         OPWORD      $A8BF
  221. _EraseArc         OPWORD      $A8C0
  222. _InvertArc        OPWORD      $A8C1
  223. _FillArc          OPWORD      $A8C2
  224. _PtToAngle        OPWORD      $A8C3
  225. _AngleFromSlope    OPWORD      $A8C4
  226. _StdPoly          OPWORD      $A8C5
  227. _FramePoly        OPWORD      $A8C6
  228. _PaintPoly        OPWORD      $A8C7
  229. _ErasePoly        OPWORD      $A8C8
  230. _InvertPoly       OPWORD      $A8C9
  231. _FillPoly         OPWORD      $A8CA
  232. _OpenPoly         OPWORD      $A8CB
  233. _ClosePgon        OPWORD      $A8CC
  234. _ClosePoly        OPWORD      $A8CC
  235. _KillPoly         OPWORD      $A8CD
  236. _OffsetPoly       OPWORD      $A8CE
  237. _PackBits         OPWORD      $A8CF
  238. _UnpackBits       OPWORD      $A8D0
  239. _StdRgn           OPWORD      $A8D1
  240. _FrameRgn         OPWORD      $A8D2
  241. _PaintRgn         OPWORD      $A8D3
  242. _EraseRgn         OPWORD      $A8D4
  243. _InverRgn         OPWORD      $A8D5
  244. _FillRgn          OPWORD      $A8D6
  245. _BitMapRgn        OPWORD        $A8D7
  246. _BitMapToRegion    OPWORD      $A8D7
  247. _NewRgn           OPWORD      $A8D8
  248. _DisposRgn        OPWORD      $A8D9
  249. _DisposeRgn        OPWORD        $A8D9
  250. _OpenRgn          OPWORD      $A8DA
  251. _CloseRgn         OPWORD      $A8DB
  252. _CopyRgn          OPWORD      $A8DC
  253. _SetEmptyRgn      OPWORD      $A8DD
  254. _SetRecRgn        OPWORD      $A8DE
  255. _RectRgn          OPWORD      $A8DF
  256. _OfsetRgn         OPWORD      $A8E0
  257. _OffsetRgn        OPWORD      $A8E0
  258. _InsetRgn         OPWORD      $A8E1
  259. _EmptyRgn         OPWORD      $A8E2
  260. _EqualRgn         OPWORD      $A8E3
  261. _SectRgn          OPWORD      $A8E4
  262. _UnionRgn         OPWORD      $A8E5
  263. _DiffRgn          OPWORD      $A8E6
  264. _XOrRgn           OPWORD      $A8E7
  265. _PtInRgn          OPWORD      $A8E8
  266. _RectInRgn        OPWORD      $A8E9
  267. _SetStdProcs      OPWORD      $A8EA
  268. _StdBits          OPWORD      $A8EB
  269. _CopyBits         OPWORD      $A8EC
  270. _StdTxMeas        OPWORD      $A8ED
  271. _StdGetPic        OPWORD      $A8EE
  272. _ScrollRect       OPWORD      $A8EF
  273. _StdPutPic        OPWORD      $A8F0
  274. _StdComment       OPWORD      $A8F1
  275. _PicComment       OPWORD      $A8F2
  276. _OpenPicture      OPWORD      $A8F3
  277. _ClosePicture     OPWORD      $A8F4
  278. _KillPicture      OPWORD      $A8F5
  279. _DrawPicture      OPWORD      $A8F6
  280. _ScalePt          OPWORD      $A8F8
  281. _MapPt            OPWORD      $A8F9
  282. _MapRect          OPWORD      $A8FA
  283. _MapRgn           OPWORD      $A8FB
  284. _MapPoly          OPWORD      $A8FC
  285.  
  286. ; Toolbox
  287.  
  288. _Count1Resources OPWORD      $A80D
  289. _Get1IxResource    OPWORD      $A80E
  290. _Get1IxType       OPWORD      $A80F
  291. _Unique1ID        OPWORD      $A810
  292. _TESelView        OPWORD      $A811
  293. _TEPinScroll      OPWORD      $A812
  294. _TEAutoView       OPWORD      $A813
  295. _Pack8            OPWORD      $A816
  296. _FixATan2         OPWORD      $A818
  297. _XMunger          OPWORD      $A819
  298. _HOpenResFile     OPWORD      $A81A
  299. _HCreateResFile    OPWORD      $A81B
  300. _Count1Types      OPWORD      $A81C
  301. _Get1Resource     OPWORD      $A81F
  302. _Get1NamedResource OPWORD     $A820
  303. _MaxSizeRsrc      OPWORD      $A821
  304. _InsMenuItem      OPWORD      $A826
  305. _HideDItem        OPWORD      $A827
  306. _ShowDItem        OPWORD      $A828
  307. _LayerDispatch    OPWORD        $A829
  308. _Pack9            OPWORD      $A82B
  309. _Pack10           OPWORD      $A82C
  310. _Pack11           OPWORD      $A82D
  311. _Pack12           OPWORD      $A82E
  312. _Pack13           OPWORD      $A82F
  313. _Pack14           OPWORD      $A830
  314. _Pack15           OPWORD      $A831
  315. _ScrnBitMap       OPWORD      $A833
  316. _SetFScaleDisable OPWORD      $A834
  317. _FontMetrics      OPWORD      $A835
  318. _ZoomWindow       OPWORD      $A83A
  319. _TrackBox         OPWORD      $A83B
  320. _InitFonts        OPWORD      $A8FE
  321. _GetFName         OPWORD      $A8FF
  322. _GetFNum          OPWORD      $A900
  323. _FMSwapFont       OPWORD      $A901
  324. _RealFont         OPWORD      $A902
  325. _SetFontLock      OPWORD      $A903
  326. _DrawGrowIcon     OPWORD      $A904
  327. _DragGrayRgn      OPWORD      $A905
  328. _NewString        OPWORD      $A906
  329. _SetString        OPWORD      $A907
  330. _ShowHide         OPWORD      $A908
  331. _CalcVis          OPWORD      $A909
  332. _CalcVBehind      OPWORD      $A90A
  333. _ClipAbove        OPWORD      $A90B
  334. _PaintOne         OPWORD      $A90C
  335. _PaintBehind      OPWORD      $A90D
  336. _SaveOld          OPWORD      $A90E
  337. _DrawNew          OPWORD      $A90F
  338. _GetWMgrPort      OPWORD      $A910
  339. _CheckUpDate      OPWORD      $A911
  340. _InitWindows      OPWORD      $A912
  341. _NewWindow        OPWORD      $A913
  342. _DisposWindow     OPWORD      $A914
  343. _DisposeWindow    OPWORD        $A914
  344. _ShowWindow       OPWORD      $A915
  345. _HideWindow       OPWORD      $A916
  346. _GetWRefCon       OPWORD      $A917
  347. _SetWRefCon       OPWORD      $A918
  348. _GetWTitle        OPWORD      $A919
  349. _SetWTitle        OPWORD      $A91A
  350. _MoveWindow       OPWORD      $A91B
  351. _HiliteWindow     OPWORD      $A91C
  352. _SizeWindow       OPWORD      $A91D
  353. _TrackGoAway      OPWORD      $A91E
  354. _SelectWindow     OPWORD      $A91F
  355. _BringToFront     OPWORD      $A920
  356. _SendBehind       OPWORD      $A921
  357. _BeginUpDate      OPWORD      $A922
  358. _EndUpDate        OPWORD      $A923
  359. _FrontWindow      OPWORD      $A924
  360. _DragWindow       OPWORD      $A925
  361. _DragTheRgn       OPWORD      $A926
  362. _InvalRgn         OPWORD      $A927
  363. _InvalRect        OPWORD      $A928
  364. _ValidRgn         OPWORD      $A929
  365. _ValidRect        OPWORD      $A92A
  366. _GrowWindow       OPWORD      $A92B
  367. _FindWindow       OPWORD      $A92C
  368. _CloseWindow      OPWORD      $A92D
  369. _SetWindowPic     OPWORD      $A92E
  370. _GetWindowPic     OPWORD      $A92F
  371. _InitMenus        OPWORD      $A930
  372. _NewMenu          OPWORD      $A931
  373. _DisposMenu       OPWORD      $A932
  374. _DisposeMenu     OPWORD        $A932
  375. _AppendMenu       OPWORD      $A933
  376. _ClearMenuBar     OPWORD      $A934
  377. _InsertMenu       OPWORD      $A935
  378. _DeleteMenu       OPWORD      $A936
  379. _DrawMenuBar      OPWORD      $A937
  380. _InvalMenuBar      OPWORD      $A81D
  381. _HiliteMenu       OPWORD      $A938
  382. _EnableItem       OPWORD      $A939
  383. _DisableItem      OPWORD      $A93A
  384. _GetMenuBar       OPWORD      $A93B
  385. _SetMenuBar       OPWORD      $A93C
  386. _MenuSelect       OPWORD      $A93D
  387. _MenuKey          OPWORD      $A93E
  388. _GetItmIcon       OPWORD      $A93F
  389. _SetItmIcon       OPWORD      $A940
  390. _GetItmStyle      OPWORD      $A941
  391. _SetItmStyle      OPWORD      $A942
  392. _GetItmMark       OPWORD      $A943
  393. _SetItmMark       OPWORD      $A944
  394. _CheckItem        OPWORD      $A945
  395. _GetItem          OPWORD      $A946
  396. _SetItem          OPWORD      $A947
  397. _CalcMenuSize     OPWORD      $A948
  398. _GetMHandle       OPWORD      $A949
  399. _SetMFlash        OPWORD      $A94A
  400. _PlotIcon         OPWORD      $A94B
  401. _FlashMenuBar     OPWORD      $A94C
  402. _AddResMenu       OPWORD      $A94D
  403. _PinRect          OPWORD      $A94E
  404. _DeltaPoint       OPWORD      $A94F
  405. _CountMItems      OPWORD      $A950
  406. _InsertResMenu    OPWORD      $A951
  407. _DelMenuItem      OPWORD      $A952
  408. _UpdtControl      OPWORD      $A953
  409. _NewControl       OPWORD      $A954
  410. _DisposControl    OPWORD      $A955
  411. _DisposeControl    OPWORD        $A955
  412. _KillControls     OPWORD      $A956
  413. _ShowControl      OPWORD      $A957
  414. _HideControl      OPWORD      $A958
  415. _MoveControl      OPWORD      $A959
  416. _GetCRefCon       OPWORD      $A95A
  417. _SetCRefCon       OPWORD      $A95B
  418. _SizeControl      OPWORD      $A95C
  419. _HiliteControl    OPWORD      $A95D
  420. _GetCTitle        OPWORD      $A95E
  421. _SetCTitle        OPWORD      $A95F
  422. _GetCtlValue      OPWORD      $A960
  423. _GetMinCtl        OPWORD      $A961
  424. _GetMaxCtl        OPWORD      $A962
  425. _SetCtlValue      OPWORD      $A963
  426. _SetMinCtl        OPWORD      $A964
  427. _SetMaxCtl        OPWORD      $A965
  428. _TestControl      OPWORD      $A966
  429. _DragControl      OPWORD      $A967
  430. _TrackControl     OPWORD      $A968
  431. _DrawControls     OPWORD      $A969
  432. _GetCtlAction     OPWORD      $A96A
  433. _SetCtlAction     OPWORD      $A96B
  434. _FindControl      OPWORD      $A96C
  435. _Draw1Control     OPWORD      $A96D
  436. _DeQueue          OPWORD      $A96E
  437. _EnQueue          OPWORD      $A96F
  438. _WaitNextEvent    OPWORD      $A860
  439. _GetNextEvent     OPWORD      $A970
  440. _EventAvail       OPWORD      $A971
  441. _GetMouse         OPWORD      $A972
  442. _StillDown        OPWORD      $A973
  443. _Button           OPWORD      $A974
  444. _TickCount        OPWORD      $A975
  445. _GetKeys          OPWORD      $A976
  446. _WaitMouseUp      OPWORD      $A977
  447. _UpdtDialog       OPWORD      $A978
  448. _CouldDialog      OPWORD      $A979
  449. _FreeDialog       OPWORD      $A97A
  450. _InitDialogs      OPWORD      $A97B
  451. _GetNewDialog     OPWORD      $A97C
  452. _NewDialog        OPWORD      $A97D
  453. _SelIText         OPWORD      $A97E
  454. _IsDialogEvent    OPWORD      $A97F
  455. _DialogSelect     OPWORD      $A980
  456. _DrawDialog       OPWORD      $A981
  457. _CloseDialog      OPWORD      $A982
  458. _DisposDialog     OPWORD      $A983
  459. _DisposeDialog    OPWORD        $A983
  460. _FindDItem        OPWORD      $A984
  461. _Alert            OPWORD      $A985
  462. _StopAlert        OPWORD      $A986
  463. _NoteAlert        OPWORD      $A987
  464. _CautionAlert     OPWORD      $A988
  465. _CouldAlert       OPWORD      $A989
  466. _FreeAlert        OPWORD      $A98A
  467. _ParamText        OPWORD      $A98B
  468. _ErrorSound       OPWORD      $A98C
  469. _GetDItem         OPWORD      $A98D
  470. _SetDItem         OPWORD      $A98E
  471. _SetIText         OPWORD      $A98F
  472. _GetIText         OPWORD      $A990
  473. _ModalDialog      OPWORD      $A991
  474. _DetachResource    OPWORD      $A992
  475. _SetResPurge      OPWORD      $A993
  476. _CurResFile       OPWORD      $A994
  477. _InitResources    OPWORD      $A995
  478. _RsrcZoneInit     OPWORD      $A996
  479. _OpenResFile      OPWORD      $A997
  480. _UseResFile       OPWORD      $A998
  481. _UpdateResFile    OPWORD      $A999
  482. _CloseResFile     OPWORD      $A99A
  483. _SetResLoad       OPWORD      $A99B
  484. _CountResources    OPWORD      $A99C
  485. _GetIndResource    OPWORD      $A99D
  486. _CountTypes       OPWORD      $A99E
  487. _GetIndType       OPWORD      $A99F
  488. _GetResource      OPWORD      $A9A0
  489. _GetNamedResource OPWORD      $A9A1
  490. _LoadResource     OPWORD      $A9A2
  491. _ReleaseResource OPWORD      $A9A3
  492. _HomeResFile      OPWORD      $A9A4
  493. _SizeRsrc         OPWORD      $A9A5
  494. _GetResAttrs      OPWORD      $A9A6
  495. _SetResAttrs      OPWORD      $A9A7
  496. _GetResInfo       OPWORD      $A9A8
  497. _SetResInfo       OPWORD      $A9A9
  498. _ChangedResource OPWORD      $A9AA
  499. _AddResource      OPWORD      $A9AB
  500. _AddReference     OPWORD      $A9AC
  501. _RmveResource     OPWORD      $A9AD
  502. _RmveReference    OPWORD      $A9AE
  503. _ResError         OPWORD      $A9AF
  504. _WriteResource    OPWORD      $A9B0
  505. _CreateResFile    OPWORD      $A9B1
  506. _SystemEvent      OPWORD      $A9B2
  507. _SystemClick      OPWORD      $A9B3
  508. _SystemTask       OPWORD      $A9B4
  509. _SystemMenu       OPWORD      $A9B5
  510. _OpenDeskAcc      OPWORD      $A9B6
  511. _CloseDeskAcc     OPWORD      $A9B7
  512. _GetPattern       OPWORD      $A9B8
  513. _GetCursor        OPWORD      $A9B9
  514. _GetString        OPWORD      $A9BA
  515. _GetIcon          OPWORD      $A9BB
  516. _GetPicture       OPWORD      $A9BC
  517. _GetNewWindow     OPWORD      $A9BD
  518. _GetNewControl    OPWORD      $A9BE
  519. _GetRMenu         OPWORD      $A9BF
  520. _GetNewMBar       OPWORD      $A9C0
  521. _UniqueID         OPWORD      $A9C1
  522. _SysEdit          OPWORD      $A9C2
  523. _OpenRFPerm       OPWORD      $A9C4
  524. _RsrcMapEntry     OPWORD      $A9C5
  525. _Secs2Date        OPWORD      $A9C6
  526. _Date2Secs        OPWORD      $A9C7
  527. _SysBeep          OPWORD      $A9C8
  528. _SysError         OPWORD      $A9C9
  529. _PutIcon          OPWORD      $A9CA
  530. _Munger           OPWORD      $A9E0
  531. _HandToHand       OPWORD      $A9E1
  532. _PtrToXHand       OPWORD      $A9E2
  533. _PtrToHand        OPWORD      $A9E3
  534. _HandAndHand      OPWORD      $A9E4
  535. _InitPack         OPWORD      $A9E5
  536. _InitAllPacks     OPWORD      $A9E6
  537. _Pack0            OPWORD      $A9E7
  538. _Pack1            OPWORD      $A9E8
  539. _Pack2            OPWORD      $A9E9
  540. _Pack3            OPWORD      $A9EA
  541. _FP68K            OPWORD      $A9EB
  542. _Pack4            OPWORD      $A9EB
  543. _Elems68K         OPWORD      $A9EC
  544. _Pack5            OPWORD      $A9EC
  545. _Pack6            OPWORD      $A9ED
  546. _DECSTR68K        OPWORD      $A9EE
  547. _Pack7            OPWORD      $A9EE
  548. _PtrAndHand       OPWORD      $A9EF
  549. _LoadSeg          OPWORD      $A9F0
  550. _UnLoadSeg        OPWORD      $A9F1
  551. _Launch           OPWORD      $A9F2
  552. _Chain            OPWORD      $A9F3
  553. _ExitToShell      OPWORD      $A9F4
  554. _GetAppParms      OPWORD      $A9F5
  555. _GetResFileAttrs OPWORD      $A9F6
  556. _SetResFileAttrs OPWORD      $A9F7
  557. _MethodDispatch    OPWORD      $A9F8
  558. _InfoScrap        OPWORD      $A9F9
  559. _UnlodeScrap      OPWORD      $A9FA
  560. _UnloadScrap      OPWORD      $A9FA
  561. _LodeScrap        OPWORD      $A9FB
  562. _LoadScrap        OPWORD      $A9FB
  563. _ZeroScrap        OPWORD      $A9FC
  564. _GetScrap         OPWORD      $A9FD
  565. _PutScrap         OPWORD      $A9FE
  566. _Debugger         OPWORD      $A9FF
  567. _IconDispatch    OPWORD        $ABC9
  568. _DebugStr         OPWORD      $ABFF
  569.  
  570. ; Resource Manager
  571.  
  572. _ResourceDispatch OPWORD    $A822
  573.  
  574. selectReadPartialResource    EQU        1
  575. selectWritePartialResource    EQU        2
  576. selectSetResourceSize        EQU        3
  577.  
  578.         MACRO
  579.         _ReadPartialResource
  580.             DoDispatch _ResourceDispatch,selectReadPartialResource
  581.         ENDM
  582.  
  583.         MACRO
  584.         _WritePartialResource
  585.             DoDispatch _ResourceDispatch,selectWritePartialResource
  586.         ENDM
  587.  
  588.         MACRO
  589.         _SetResourceSize
  590.             DoDispatch _ResourceDispatch,selectSetResourceSize
  591.         ENDM
  592.  
  593. ; Device Manager (some shared by the File Manager)
  594.  
  595. _Open             OPWORD      $A000
  596. _Close            OPWORD      $A001
  597. _Read             OPWORD      $A002
  598. _Write            OPWORD      $A003
  599. _Control          OPWORD      $A004
  600. _Status           OPWORD      $A005
  601. _KillIO           OPWORD      $A006
  602.  
  603. ; File Manager
  604.  
  605. _GetVolInfo       OPWORD      $A007
  606. _Create           OPWORD      $A008
  607. _Delete           OPWORD      $A009
  608. _OpenRF           OPWORD      $A00A
  609. _Rename           OPWORD      $A00B
  610. _GetFileInfo      OPWORD      $A00C
  611. _SetFileInfo      OPWORD      $A00D
  612. _UnmountVol       OPWORD      $A00E
  613. _HUnmountVol    OPWORD        $A20E            ; unconditional (ignores open files)
  614. _MountVol         OPWORD      $A00F
  615. _Allocate         OPWORD      $A010
  616. _GetEOF           OPWORD      $A011
  617. _SetEOF           OPWORD      $A012
  618. _FlushVol         OPWORD      $A013
  619. _GetVol           OPWORD      $A014
  620. _SetVol           OPWORD      $A015
  621. _FInitQueue       OPWORD      $A016
  622. _Eject            OPWORD      $A017
  623. _GetFPos          OPWORD      $A018
  624. _SetFilLock     OPWORD        $A041
  625. _RstFilLock     OPWORD        $A042
  626. _SetFilType     OPWORD        $A043
  627. _SetFPos        OPWORD        $A044
  628. _FlushFile        OPWORD        $A045
  629.  
  630. _HOpen            OPWORD      $A200
  631. _HGetVInfo        OPWORD      $A207
  632. _HCreate          OPWORD      $A208
  633. _HDelete          OPWORD      $A209
  634. _HOpenRF          OPWORD      $A20A
  635. _HRename          OPWORD      $A20B
  636. _HGetFileInfo     OPWORD      $A20C
  637. _HSetFileInfo     OPWORD      $A20D
  638. _AllocContig      OPWORD      $A210
  639. _HSetVol          OPWORD      $A215
  640. _HGetVol          OPWORD      $A214
  641. _HSetFLock        OPWORD      $A241
  642. _HRstFLock        OPWORD      $A242
  643.  
  644. ; dispatch trap for remaining File Manager (and Desktop Manager) calls
  645.  
  646. _FSDispatch     OPWORD        $A060
  647. _HFSDispatch    OPWORD        $A260
  648.  
  649. ; HFSDispatch selectors
  650.  
  651. selectFSControl                EQU        $0
  652. selectOpenWD                EQU     $1
  653. selectCloseWD                EQU     $2
  654. selectCatMove                EQU     $5
  655. selectDirCreate             EQU     $6
  656. selectGetWDInfo             EQU     $7
  657. selectGetFCBInfo            EQU     $8
  658. selectGetCatInfo            EQU     $9
  659. selectSetCatInfo            EQU     $A
  660. selectSetVolInfo            EQU     $B
  661. selectSetPMSP                EQU     $C
  662. selectSetupWDCB                EQU        $D
  663. selectSetupDef                EQU        $E
  664. selectReadWDCB                EQU        $F
  665. selectLockRng                EQU     $10
  666. selectUnlockRng             EQU     $11
  667. selectCreateFileIDRef        EQU     $14
  668. selectDeleteFileIDRef        EQU     $15
  669. selectResolveFileIDRef         EQU     $16
  670. selectExchangeFiles         EQU     $17
  671. selectCatSearch             EQU     $18
  672. selectOpenDF                EQU         $1A
  673. selectMakeFSSpec            EQU        $1B
  674.  
  675. selectDTGetPath                EQU     $20
  676. selectDTCloseDown            EQU        $21
  677. selectDTAddIcon             EQU     $22
  678. selectDTGetIcon             EQU     $23
  679. selectDTGetIconInfo         EQU     $24
  680. selectDTAddAPPL             EQU     $25
  681. selectDTRemoveAPPL            EQU     $26
  682. selectDTGetAPPL             EQU     $27
  683. selectDTSetComment            EQU     $28
  684. selectDTRemoveComment        EQU     $29
  685. selectDTGetComment            EQU     $2A
  686. selectDTFlush                EQU     $2B
  687. selectDTReset                EQU     $2C
  688. selectDTGetInfo             EQU     $2D
  689. selectDTOpenInform            EQU     $2E
  690. selectDTDelete                EQU     $2F
  691.  
  692. selectGetVolParms            EQU     $30
  693. selectGetLogInInfo            EQU     $31
  694. selectGetDirAccess            EQU     $32
  695. selectSetDirAccess            EQU     $33
  696. selectMapID                 EQU     $34
  697. selectMapName                EQU     $35
  698. selectCopyFile                EQU     $36
  699. selectMoveRename            EQU     $37
  700. selectOpenDeny                EQU     $38
  701. selectOpenRFDeny            EQU     $39
  702. selectGetXCatInfo            EQU        $3A
  703. selectGetVolMountInfoSize    EQU        $3F
  704.  
  705. selectGetVolMountInfo        EQU        $40
  706. selectVolumeMount            EQU        $41
  707.  
  708. selectGetForeignPrivs        EQU     $60
  709. selectSetForeignPrivs        EQU     $61
  710.  
  711. ; DoHFSDispatch supports both the "_trap async" and old-style "_trap ,async" call formats
  712. ; by using two parameters.  hfsBit defaults to 1 (i.e. A260) but can be set zero (A060)
  713.  
  714.         macro
  715.         DoHFSDispatch &selector,&async1,&async2,&hfsBit==newHFS
  716.             moveq.l #&selector,d0
  717.             _FSDispatch &hfsBit,&async1,&async2
  718.         endm
  719.  
  720.         macro
  721.         _FSControl &async1,&async2
  722.             DoHFSDispatch selectFSControl,&async1,&async2
  723.         endm
  724.  
  725.         macro
  726.         _OpenWD &async1,&async2
  727.             DoHFSDispatch selectOpenWD,&async1,&async2
  728.         endm
  729.  
  730.         macro
  731.         _CloseWD &async1,&async2
  732.             DoHFSDispatch selectCloseWD,&async1,&async2
  733.         endm
  734.  
  735.         macro
  736.         _CatMove &async1,&async2
  737.             DoHFSDispatch selectCatMove,&async1,&async2
  738.         endm
  739.  
  740.         macro
  741.         _DirCreate &async1,&async2
  742.             DoHFSDispatch selectDirCreate,&async1,&async2
  743.         endm
  744.  
  745.         macro
  746.         _GetWDInfo &async1,&async2
  747.             DoHFSDispatch selectGetWDInfo,&async1,&async2
  748.         endm
  749.  
  750.         macro
  751.         _GetFCBInfo &async1,&async2
  752.             DoHFSDispatch selectGetFCBInfo,&async1,&async2
  753.         endm
  754.  
  755.         macro
  756.         _GetCatInfo &async1,&async2
  757.             DoHFSDispatch selectGetCatInfo,&async1,&async2
  758.         endm
  759.  
  760.         macro
  761.         _SetCatInfo &async1,&async2
  762.             DoHFSDispatch selectSetCatInfo,&async1,&async2
  763.         endm
  764.  
  765.         macro
  766.         _SetVolInfo &async1,&async2
  767.             DoHFSDispatch selectSetVolInfo,&async1,&async2
  768.         endm
  769.  
  770.         macro
  771.         _SetPMSP &async1,&async2
  772.             DoHFSDispatch selectSetPMSP,&async1,&async2
  773.         endm
  774.  
  775.         macro
  776.         _SetupWDCB &async1,&async2
  777.             DoHFSDispatch selectSetupWDCB,&async1,&async2
  778.         endm
  779.  
  780.         macro
  781.         _SetupDef &async1,&async2
  782.             DoHFSDispatch selectSetupDef,&async1,&async2
  783.         endm
  784.  
  785.         macro
  786.         _ReadWDCB &async1,&async2
  787.             DoHFSDispatch selectReadWDCB,&async1,&async2
  788.         endm
  789.  
  790.         macro
  791.         _LockRng &async1,&async2
  792.             DoHFSDispatch selectLockRng,&async1,&async2
  793.         endm
  794.  
  795.         macro
  796.         _UnlockRng &async1,&async2
  797.             DoHFSDispatch selectUnlockRng,&async1,&async2
  798.         endm
  799.  
  800.         macro
  801.         _CreateFileIDRef &async1,&async2
  802.             DoHFSDispatch selectCreateFileIDRef,&async1,&async2
  803.         endm
  804.  
  805.         macro
  806.         _DeleteFileIDRef &async1,&async2
  807.             DoHFSDispatch selectDeleteFileIDRef,&async1,&async2
  808.         endm
  809.  
  810.         macro
  811.         _ResolveFileIDRef &async1,&async2
  812.             DoHFSDispatch selectResolveFileIDRef,&async1,&async2
  813.         endm
  814.  
  815.         macro
  816.         _ExchangeFiles &async1,&async2
  817.             DoHFSDispatch selectExchangeFiles,&async1,&async2
  818.         endm
  819.  
  820.         macro
  821.         _CatSearch &async1,&async2
  822.             DoHFSDispatch selectCatSearch,&async1,&async2
  823.         endm
  824.  
  825.         macro
  826.         _OpenDF &async1,&async2
  827.             DoHFSDispatch selectOpenDF,&async1,&async2,hfsBit=0
  828.         endm
  829.  
  830.         macro
  831.         _HOpenDF &async1,&async2
  832.             DoHFSDispatch selectOpenDF,&async1,&async2
  833.         endm
  834.  
  835.         macro
  836.         _MakeFSSpec &async1,&async2
  837.             DoHFSDispatch selectMakeFSSpec,&async1,&async2
  838.         endm
  839.  
  840.         macro
  841.         _GetVolParms &async1,&async2
  842.             DoHFSDispatch selectGetVolParms,&async1,&async2
  843.         endm
  844.  
  845.         macro
  846.         _GetLogInInfo &async1,&async2
  847.             DoHFSDispatch selectGetLogInInfo,&async1,&async2
  848.         endm
  849.  
  850.         macro
  851.         _GetDirAccess &async1,&async2
  852.             DoHFSDispatch selectGetDirAccess,&async1,&async2
  853.         endm
  854.  
  855.         macro
  856.         _SetDirAccess &async1,&async2
  857.             DoHFSDispatch selectSetDirAccess,&async1,&async2
  858.         endm
  859.  
  860.         macro
  861.         _MapID &async1,&async2
  862.             DoHFSDispatch selectMapID,&async1,&async2
  863.         endm
  864.  
  865.         macro
  866.         _MapName &async1,&async2
  867.             DoHFSDispatch selectMapName,&async1,&async2
  868.         endm
  869.  
  870.         macro
  871.         _CopyFile &async1,&async2
  872.             DoHFSDispatch selectCopyFile,&async1,&async2
  873.         endm
  874.  
  875.         macro
  876.         _MoveRename &async1,&async2
  877.             DoHFSDispatch selectMoveRename,&async1,&async2
  878.         endm
  879.  
  880.         macro
  881.         _OpenDeny &async1,&async2
  882.             DoHFSDispatch selectOpenDeny,&async1,&async2
  883.         endm
  884.  
  885.         macro
  886.         _OpenRFDeny &async1,&async2
  887.             DoHFSDispatch selectOpenRFDeny,&async1,&async2
  888.         endm
  889.  
  890.         macro
  891.         _GetXCatInfo &async1,&async2
  892.             DoHFSDispatch selectGetXCatInfo,&async1,&async2
  893.         endm
  894.  
  895.         macro
  896.         _GetVolMountInfoSize &async1,&async2
  897.             DoHFSDispatch selectGetVolMountInfoSize,&async1,&async2
  898.         endm
  899.  
  900.         macro
  901.         _GetVolMountInfo &async1,&async2
  902.             DoHFSDispatch selectGetVolMountInfo,&async1,&async2
  903.         endm
  904.  
  905.         macro
  906.         _VolumeMount &async1,&async2
  907.             DoHFSDispatch selectVolumeMount,&async1,&async2
  908.         endm
  909.  
  910.         macro
  911.         _GetForeignPrivs &async1,&async2
  912.             DoHFSDispatch selectGetForeignPrivs,&async1,&async2
  913.         endm
  914.  
  915.         macro
  916.         _SetForeignPrivs &async1,&async2
  917.             DoHFSDispatch selectSetForeignPrivs,&async1,&async2
  918.         endm
  919.  
  920. ; Desktop Manager calls
  921.  
  922.         macro
  923.         _DTGetPath &async1,&async2
  924.             DoHFSDispatch selectDTGetPath,&async1,&async2
  925.         endm
  926.  
  927.         macro
  928.         _DTCloseDown &async1,&async2
  929.             DoHFSDispatch selectDTCloseDown,&async1,&async2
  930.         endm
  931.  
  932.         macro
  933.         _DTAddIcon &async1,&async2
  934.             DoHFSDispatch selectDTAddIcon,&async1,&async2
  935.         endm
  936.  
  937.         macro
  938.         _DTGetIcon &async1,&async2
  939.             DoHFSDispatch selectDTGetIcon,&async1,&async2
  940.         endm
  941.  
  942.         macro
  943.         _DTGetIconInfo &async1,&async2
  944.             DoHFSDispatch selectDTGetIconInfo,&async1,&async2
  945.         endm
  946.  
  947.         macro
  948.         _DTAddAPPL &async1,&async2
  949.             DoHFSDispatch selectDTAddAPPL,&async1,&async2
  950.         endm
  951.  
  952.         macro
  953.         _DTRemoveAPPL &async1,&async2
  954.             DoHFSDispatch selectDTRemoveAPPL,&async1,&async2
  955.         endm
  956.  
  957.         macro
  958.         _DTGetAPPL &async1,&async2
  959.             DoHFSDispatch selectDTGetAPPL,&async1,&async2
  960.         endm
  961.  
  962.         macro
  963.         _DTSetComment &async1,&async2
  964.             DoHFSDispatch selectDTSetComment,&async1,&async2
  965.         endm
  966.  
  967.         macro
  968.         _DTRemoveComment &async1,&async2
  969.             DoHFSDispatch selectDTRemoveComment,&async1,&async2
  970.         endm
  971.  
  972.         macro
  973.         _DTGetComment &async1,&async2
  974.             DoHFSDispatch selectDTGetComment,&async1,&async2
  975.         endm
  976.  
  977.         macro
  978.         _DTFlush &async1,&async2
  979.             DoHFSDispatch selectDTFlush,&async1,&async2
  980.         endm
  981.  
  982.         macro
  983.         _DTReset &async1,&async2
  984.             DoHFSDispatch selectDTReset,&async1,&async2
  985.         endm
  986.  
  987.         macro
  988.         _DTGetInfo &async1,&async2
  989.             DoHFSDispatch selectDTGetInfo,&async1,&async2
  990.         endm
  991.  
  992.         macro
  993.         _DTOpenInform &async1,&async2
  994.             DoHFSDispatch selectDTOpenInform,&async1,&async2,hfsBit=0
  995.         endm
  996.  
  997.         macro
  998.         _DTDelete &async1,&async2
  999.             DoHFSDispatch selectDTDelete,&async1,&async2,hfsBit=0
  1000.         endm
  1001.  
  1002. ; High level FSSpec calls
  1003.  
  1004. _HighLevelFSDispatch     OPWORD    $AA52
  1005.  
  1006. selectFSMakeFSSpec        EQU        $1
  1007. selectFSpOpenDF            EQU        $2
  1008. selectFSpOpenRF            EQU        $3
  1009. selectFSpCreate            EQU        $4
  1010. selectFSpDirCreate        EQU        $5
  1011. selectFSpDelete            EQU        $6
  1012. selectFSpGetFInfo        EQU        $7
  1013. selectFSpSetFInfo        EQU        $8
  1014. selectFSpSetFLock        EQU        $9
  1015. selectFSpRstFLock        EQU        $A
  1016. selectFSpRename            EQU        $B
  1017. selectFSpCatMove        EQU        $C
  1018. selectFSpOpenResFile    EQU        $D
  1019. selectFSpCreateResFile    EQU        $E
  1020. selectFSpExchangeFiles    EQU        $F
  1021.  
  1022.         macro
  1023.         _FSMakeFSSpec
  1024.             DoDispatch _HighLevelFSDispatch,selectFSMakeFSSpec
  1025.         endm
  1026.  
  1027.         macro
  1028.         _FSpOpenDF
  1029.             DoDispatch _HighLevelFSDispatch,selectFSpOpenDF
  1030.         endm
  1031.  
  1032.         macro
  1033.         _FSpOpenRF
  1034.             DoDispatch _HighLevelFSDispatch,selectFSpOpenRF
  1035.         endm
  1036.  
  1037.         macro
  1038.         _FSpCreate
  1039.             DoDispatch _HighLevelFSDispatch,selectFSpCreate
  1040.         endm
  1041.  
  1042.         macro
  1043.         _FSpDirCreate
  1044.             DoDispatch _HighLevelFSDispatch,selectFSpDirCreate
  1045.         endm
  1046.  
  1047.         macro
  1048.         _FSpDelete
  1049.             DoDispatch _HighLevelFSDispatch,selectFSpDelete
  1050.         endm
  1051.  
  1052.         macro
  1053.         _FSpGetFInfo
  1054.             DoDispatch _HighLevelFSDispatch,selectFSpGetFInfo
  1055.         endm
  1056.  
  1057.         macro
  1058.         _FSpSetFInfo
  1059.             DoDispatch _HighLevelFSDispatch,selectFSpSetFInfo
  1060.         endm
  1061.  
  1062.         macro
  1063.         _FSpSetFLock
  1064.             DoDispatch _HighLevelFSDispatch,selectFSpSetFLock
  1065.         endm
  1066.  
  1067.         macro
  1068.         _FSpRstFLock
  1069.             DoDispatch _HighLevelFSDispatch,selectFSpRstFLock
  1070.         endm
  1071.  
  1072.         macro
  1073.         _FSpRename
  1074.             DoDispatch _HighLevelFSDispatch,selectFSpRename
  1075.         endm
  1076.  
  1077.         macro
  1078.         _FSpCatMove
  1079.             DoDispatch _HighLevelFSDispatch,selectFSpCatMove
  1080.         endm
  1081.  
  1082.         macro
  1083.         _FSpOpenResFile
  1084.             DoDispatch _HighLevelFSDispatch,selectFSpOpenResFile
  1085.         endm
  1086.  
  1087.         macro
  1088.         _FSpCreateResFile
  1089.             DoDispatch _HighLevelFSDispatch,selectFSpCreateResFile
  1090.         endm
  1091.  
  1092.         macro
  1093.         _FSpExchangeFiles
  1094.             DoDispatch _HighLevelFSDispatch,selectFSpExchangeFiles
  1095.         endm
  1096.  
  1097. ; Memory Manager
  1098.  
  1099. _InitZone         OPWORD      $A019
  1100. _GetZone          OPWORD      $A11A
  1101. _SetZone          OPWORD      $A01B
  1102. _FreeMem          OPWORD      $A01C
  1103. _MaxMem           OPWORD      $A11D
  1104. _NewPtr           OPWORD      $A11E
  1105. _DisposPtr        OPWORD      $A01F
  1106. _DisposePtr        OPWORD        $A01F
  1107. _SetPtrSize       OPWORD      $A020
  1108. _GetPtrSize       OPWORD      $A021
  1109. _NewHandle        OPWORD      $A122
  1110. _DisposHandle     OPWORD      $A023
  1111. _DisposeHandle    OPWORD        $A023
  1112. _SetHandleSize    OPWORD      $A024
  1113. _GetHandleSize    OPWORD      $A025
  1114. _HandleZone       OPWORD      $A126
  1115. _ReallocHandle    OPWORD      $A027
  1116. _RecoverHandle    OPWORD      $A128
  1117. _HLock            OPWORD      $A029
  1118. _HUnlock          OPWORD      $A02A
  1119. _EmptyHandle      OPWORD      $A02B
  1120. _InitApplZone     OPWORD      $A02C
  1121. _SetApplLimit     OPWORD      $A02D
  1122. _BlockMove        OPWORD      $A02E
  1123. _MemoryDispatch    OPWORD        $A05C
  1124. _MemoryDispatchA0Result OPWORD $A15C
  1125. _DeferUserFn    OPWORD        $A08F
  1126. _DebugUtil        OPWORD        $A08D
  1127.  
  1128. ; Event Manager
  1129.  
  1130. _PostEvent        OPWORD      $A02F
  1131. _PPostEvent       OPWORD      $A12F                     ;preserves A0 on return
  1132. _OSEventAvail     OPWORD      $A030
  1133. _GetOSEvent       OPWORD      $A031
  1134. _FlushEvents      OPWORD      $A032
  1135.  
  1136. _VInstall         OPWORD      $A033
  1137. _VRemove          OPWORD      $A034
  1138. _OffLine          OPWORD      $A035
  1139. _MoreMasters      OPWORD      $A036
  1140. _WriteParam       OPWORD      $A038
  1141. _ReadDateTime     OPWORD      $A039
  1142. _SetDateTime      OPWORD      $A03A
  1143. _Delay            OPWORD      $A03B
  1144. _CmpString        OPWORD      $A03C
  1145. _DrvrInstall      OPWORD      $A03D
  1146. _DrvrRemove       OPWORD      $A03E
  1147. _InitUtil         OPWORD      $A03F
  1148. _ResrvMem         OPWORD      $A040
  1149. _GetTrapAddress    OPWORD      $A146
  1150. _SetTrapAddress    OPWORD        $A047
  1151. _PtrZone          OPWORD      $A148
  1152. _HPurge           OPWORD      $A049
  1153. _HNoPurge         OPWORD      $A04A
  1154. _SetGrowZone      OPWORD      $A04B
  1155. _CompactMem       OPWORD      $A04C
  1156. _PurgeMem         OPWORD      $A04D
  1157. _AddDrive         OPWORD      $A04E
  1158. _RDrvrInstall     OPWORD      $A04F
  1159. _LwrString        OPWORD      $A056
  1160. _UprString        OPWORD      $A054
  1161. _SetApplBase      OPWORD      $A057
  1162. _HwPriv           OPWORD      $A198
  1163.  
  1164. ; New names for (mostly) new flavors of old LwrString trap (redone <13>)
  1165. _LowerText        OPWORD        $A056                    ;changed from _LwrText        <13>
  1166. _StripText        OPWORD      $A256
  1167. _UpperText      OPWORD      $A456                    ;changed from _UprText        <13>
  1168. _StripUpperText OPWORD      $A656                    ;changed from _StripUprText    <13>
  1169.  
  1170. ; Temporary Memory routines
  1171.  
  1172. _OSDispatch       OPWORD      $A88F                     ;Process Manager trap
  1173.  
  1174. selectTempMaxMem            EQU $15
  1175. selectTempFreeMem             EQU $18
  1176. selectTempNewHandle            EQU $1D
  1177. selectTempHLock                EQU $1E
  1178. selectTempHUnlock             EQU $1F
  1179. selectTempDisposeHandle        EQU $20
  1180. selectTempTopMem            EQU $16
  1181.  
  1182.                 MACRO
  1183.                 _TempMaxMem
  1184.                 MOVE.W #selectTempMaxMem,-(SP)
  1185.                 _OSDispatch
  1186.                 ENDM
  1187.  
  1188.                 MACRO
  1189.                 _TempFreeMem
  1190.                 MOVE.W #selectTempFreeMem,-(SP)
  1191.                 _OSDispatch
  1192.                 ENDM
  1193.  
  1194.                 MACRO
  1195.                 _TempNewHandle
  1196.                 MOVE.W #selectTempNewHandle,-(SP)
  1197.                 _OSDispatch
  1198.                 ENDM
  1199.  
  1200.                 MACRO
  1201.                 _TempHLock
  1202.                 MOVE.W #selectTempHLock,-(SP)
  1203.                 _OSDispatch
  1204.                 ENDM
  1205.  
  1206.                 MACRO
  1207.                 _TempHUnlock
  1208.                 MOVE.W #selectTempHUnlock,-(SP)
  1209.                 _OSDispatch
  1210.                 ENDM
  1211.  
  1212.                 MACRO
  1213.                 _TempDisposeHandle
  1214.                 MOVE.W #selectTempDisposeHandle,-(SP)
  1215.                   _OSDispatch
  1216.                   ENDM
  1217.  
  1218.                 MACRO
  1219.                 _TempTopMem
  1220.                 MOVE.W #selectTempTopMem,-(SP)
  1221.                   _OSDispatch
  1222.                   ENDM
  1223.  
  1224. ; Temporary Memory routines as they used to be named (before System 7.0)
  1225. selectMFMaxMem                EQU 21
  1226. selectMFFreeMem             EQU 24
  1227. selectMFTempNewHandle        EQU 29
  1228. selectMFTempHLock            EQU 30
  1229. selectMFTempHUnlock         EQU 31
  1230. selectMFTempDisposeHandle    EQU 32
  1231.  
  1232.                 MACRO
  1233.                 _MFMaxMem
  1234.                 MOVE.W #selectMFMaxMem,-(SP)
  1235.                 _OSDispatch
  1236.                 ENDM
  1237.  
  1238.                 MACRO
  1239.                 _MFFreeMem
  1240.                 MOVE.W #selectMFFreeMem,-(SP)
  1241.                 _OSDispatch
  1242.                 ENDM
  1243.  
  1244.                 MACRO
  1245.                 _MFTempNewHandle
  1246.                 MOVE.W #selectMFTempNewHandle,-(SP)
  1247.                 _OSDispatch
  1248.                 ENDM
  1249.  
  1250.                 MACRO
  1251.                 _MFTempHLock
  1252.                 MOVE.W #selectMFTempHLock,-(SP)
  1253.                 _OSDispatch
  1254.                 ENDM
  1255.  
  1256.                 MACRO
  1257.                 _MFTempHUnlock
  1258.                 MOVE.W #selectMFTempHUnlock,-(SP)
  1259.                 _OSDispatch
  1260.                 ENDM
  1261.  
  1262.                 MACRO
  1263.                 _MFTempDisposHandle
  1264.                 MOVE.W #selectMFTempDisposeHandle,-(SP)
  1265.                 _OSDispatch
  1266.                 ENDM
  1267.  
  1268.                 MACRO
  1269.                 _MFTempDisposeHandle
  1270.                 MOVE.W #selectMFTempDisposeHandle,-(SP)
  1271.                   _OSDispatch
  1272.                   ENDM
  1273.  
  1274. ; low-level memory control calls
  1275.  
  1276. selectHoldMemory            EQU        0
  1277. selectUnholdMemory            EQU        1
  1278. selectLockMemory            EQU        2
  1279. selectLockMemoryContiguous     EQU        4
  1280. selectUnlockMemory            EQU        3
  1281. selectGetPhysical            EQU        5
  1282.  
  1283. selectDebuggerGetMax        EQU        0
  1284. selectDebuggerEnter            EQU        1
  1285. selectDebuggerExit            EQU        2
  1286. selectDebuggerPoll            EQU        3
  1287. selectGetPageState             EQU        4
  1288. selectPageFaultFatal         EQU        5
  1289. selectDebuggerLockMemory    EQU        6
  1290. selectDebuggerUnlockMemory     EQU        7
  1291. selectEnterSupervisorMode    EQU        8
  1292.  
  1293.         MACRO
  1294.         _HoldMemory
  1295.             DoDispatch _MemoryDispatch,selectHoldMemory
  1296.         ENDM
  1297.  
  1298.         MACRO
  1299.         _UnholdMemory
  1300.             DoDispatch _MemoryDispatch,selectUnholdMemory
  1301.         ENDM
  1302.  
  1303.         MACRO
  1304.         _LockMemory
  1305.             DoDispatch _MemoryDispatch,selectLockMemory
  1306.         ENDM
  1307.  
  1308.         MACRO
  1309.         _LockMemoryContiguous
  1310.             DoDispatch _MemoryDispatch,selectLockMemoryContiguous
  1311.         ENDM
  1312.  
  1313.         MACRO
  1314.         _UnlockMemory
  1315.             DoDispatch _MemoryDispatch,selectUnlockMemory
  1316.         ENDM
  1317.  
  1318.         MACRO
  1319.         _GetPhysical
  1320.             DoDispatch _MemoryDispatchA0Result,selectGetPhysical
  1321.         ENDM
  1322.  
  1323. ; DebugUtil calls
  1324.  
  1325.         MACRO
  1326.         _DebuggerGetMax
  1327.             DoDispatch _DebugUtil,selectDebuggerGetMax
  1328.         ENDM
  1329.  
  1330.         MACRO
  1331.         _DebuggerEnter
  1332.             DoDispatch _DebugUtil,selectDebuggerEnter
  1333.         ENDM
  1334.  
  1335.         MACRO
  1336.         _DebuggerExit
  1337.             DoDispatch _DebugUtil,selectDebuggerExit
  1338.         ENDM
  1339.  
  1340.         MACRO
  1341.         _DebuggerPoll
  1342.             DoDispatch _DebugUtil,selectDebuggerPoll
  1343.         ENDM
  1344.  
  1345.         MACRO
  1346.         _GetPageState
  1347.             DoDispatch _DebugUtil,selectGetPageState
  1348.         ENDM
  1349.  
  1350.         MACRO
  1351.         _PageFaultFatal
  1352.             DoDispatch _DebugUtil,selectPageFaultFatal
  1353.         ENDM
  1354.  
  1355.         MACRO
  1356.         _DebuggerLockMemory
  1357.             DoDispatch _DebugUtil,selectDebuggerLockMemory
  1358.         ENDM
  1359.  
  1360.         MACRO
  1361.         _DebuggerUnlockMemory
  1362.             DoDispatch _DebugUtil,selectDebuggerUnlockMemory
  1363.         ENDM
  1364.  
  1365.         MACRO
  1366.         _EnterSupervisorMode
  1367.             DoDispatch _DebugUtil,selectEnterSupervisorMode
  1368.         ENDM
  1369.  
  1370. _RelString        OPWORD      $A050
  1371. _ReadXPRam        OPWORD      $A051
  1372. _WriteXPRam       OPWORD      $A052
  1373. _InsTime          OPWORD      $A058
  1374. _InsXTime         OPWORD      $A458
  1375. _RmvTime          OPWORD      $A059
  1376. _PrimeTime        OPWORD      $A05A
  1377. _PowerOff         OPWORD      $A05B
  1378. _MaxBlock         OPWORD      $A061
  1379. _PurgeSpace       OPWORD      $A162
  1380. _MaxApplZone      OPWORD      $A063
  1381. _MoveHHi          OPWORD      $A064
  1382. _StackSpace       OPWORD      $A065
  1383. _NewEmptyHandle   OPWORD      $A166
  1384. _HSetRBit         OPWORD      $A067
  1385. _HClrRBit         OPWORD      $A068
  1386. _HGetState        OPWORD      $A069
  1387. _HSetState        OPWORD      $A06A
  1388. _InitFS           OPWORD      $A06C
  1389. _InitEvents       OPWORD      $A06D
  1390. _StripAddress     OPWORD      $A055
  1391. _SetAppBase       OPWORD      $A057
  1392. _SwapMMUMode      OPWORD      $A05D
  1393. _SlotVInstall     OPWORD      $A06F
  1394. _SlotVRemove      OPWORD      $A070
  1395. _AttachVBL        OPWORD      $A071
  1396. _DoVBLTask        OPWORD      $A072
  1397. _SIntInstall      OPWORD      $A075
  1398. _SIntRemove       OPWORD      $A076
  1399. _CountADBs        OPWORD      $A077
  1400. _GetIndADB        OPWORD      $A078
  1401. _GetADBInfo       OPWORD      $A079
  1402. _SetADBInfo       OPWORD      $A07A
  1403. _ADBReInit        OPWORD      $A07B
  1404. _ADBOp            OPWORD      $A07C
  1405. _GetDefaultStartup OPWORD     $A07D
  1406. _SetDefaultStartup OPWORD     $A07E
  1407. _InternalWait     OPWORD      $A07F
  1408. _RGetResource     OPWORD      $A80C
  1409. _GetVideoDefault OPWORD      $A080
  1410. _SetVideoDefault OPWORD      $A081
  1411. _DTInstall        OPWORD      $A082
  1412. _SetOSDefault     OPWORD      $A083
  1413. _GetOSDefault     OPWORD      $A084
  1414.  
  1415. _IOPInfoAccess    OPWORD        $A086
  1416. _IOPMsgRequest    OPWORD        $A087
  1417. _IOPMoveData    OPWORD        $A088
  1418.  
  1419. ; Power Manager
  1420.  
  1421. _PMgrOp           OPWORD      $A085
  1422. _IdleUpdate       OPWORD      $A285
  1423. _IdleState        OPWORD      $A485
  1424. _SerialPower      OPWORD      $A685
  1425. _Sleep            OPWORD      $A08A
  1426. _SlpQInstall      OPWORD      $A28A
  1427. _SlpQRemove       OPWORD      $A48A
  1428.  
  1429. ; Comm. Toolbox
  1430.  
  1431. _CommToolboxDispatch    OPWORD    $A08B
  1432.  
  1433. _SysEnvirons      OPWORD      $A090
  1434.  
  1435. ; Egret Manager
  1436.  
  1437. _EgretDispatch    OPWORD        $A092            ; <10>
  1438.  
  1439. _Gestalt            OPWORD    $A1AD
  1440. _NewGestalt         OPWORD    $A3AD            ; <1.7>
  1441. _ReplaceGestalt        OPWORD    $A5AD            ; <1.7>
  1442. _GetGestaltProcPtr    OPWORD    $A7AD            ; <37>
  1443.  
  1444. _InitProcMenu     OPWORD      $A808
  1445. _GetItemCmd       OPWORD      $A84E
  1446. _SetItemCmd       OPWORD      $A84F
  1447. _PopUpMenuSelect  OPWORD      $A80B
  1448. _KeyTrans         OPWORD      $A9C3
  1449.  
  1450.                   MACRO
  1451.                   _GetTimeOut
  1452.                 suba.l a0,a0
  1453.                   _InternalWait
  1454.                   ENDM
  1455.  
  1456.                   MACRO
  1457.                   _SetTimeOut
  1458.                   MOVEA.W     #1,A0
  1459.                   _InternalWait
  1460.                   ENDM
  1461.  
  1462. ; TextEdit
  1463.  
  1464. _TEGetText        OPWORD      $A9CB
  1465. _TEInit           OPWORD      $A9CC
  1466. _TEDispose        OPWORD      $A9CD
  1467. _TextBox          OPWORD      $A9CE
  1468. _TESetText        OPWORD      $A9CF
  1469. _TECalText        OPWORD      $A9D0
  1470. _TESetSelect      OPWORD      $A9D1
  1471. _TENew            OPWORD      $A9D2
  1472. _TEUpdate         OPWORD      $A9D3
  1473. _TEClick          OPWORD      $A9D4
  1474. _TECopy           OPWORD      $A9D5
  1475. _TECut            OPWORD      $A9D6
  1476. _TEDelete         OPWORD      $A9D7
  1477. _TEActivate       OPWORD      $A9D8
  1478. _TEDeactivate     OPWORD      $A9D9
  1479. _TEIdle           OPWORD      $A9DA
  1480. _TEPaste          OPWORD      $A9DB
  1481. _TEKey            OPWORD      $A9DC
  1482. _TEScroll         OPWORD      $A9DD
  1483. _TEInsert         OPWORD      $A9DE
  1484. _TESetJust        OPWORD      $A9DF
  1485. _TEGetOffset      OPWORD      $A83C
  1486. _TEDispatch       OPWORD      $A83D
  1487. _TEStyleNew       OPWORD      $A83E
  1488.  
  1489. ; Color Quickdraw
  1490.  
  1491. _OpenCPort        OPWORD      $AA00
  1492. _InitCPort        OPWORD      $AA01
  1493. _CloseCPort     OPWORD        $A87D    ; CloseCPort is actually $AA02, but should never be used
  1494. _NewPixMap        OPWORD      $AA03
  1495. _DisposPixMap     OPWORD      $AA04
  1496. _DisposePixMap    OPWORD        $AA04
  1497. _CopyPixMap       OPWORD      $AA05
  1498. _SetPortPix       OPWORD      $AA06
  1499. _NewPixPat        OPWORD      $AA07
  1500. _DisposPixPat     OPWORD      $AA08
  1501. _DisposePixPat    OPWORD        $AA08
  1502. _CopyPixPat       OPWORD      $AA09
  1503. _PenPixPat        OPWORD      $AA0A
  1504. _BackPixPat       OPWORD      $AA0B
  1505. _GetPixPat        OPWORD      $AA0C
  1506. _MakeRGBPat       OPWORD      $AA0D
  1507. _FillCRect        OPWORD      $AA0E
  1508. _FillCOval        OPWORD      $AA0F
  1509. _FillCRoundRect   OPWORD      $AA10
  1510. _FillCArc         OPWORD      $AA11
  1511. _FillCRgn         OPWORD      $AA12
  1512. _FillCPoly        OPWORD      $AA13
  1513. _RGBForeColor     OPWORD      $AA14
  1514. _RGBBackColor     OPWORD      $AA15
  1515. _SetCPixel        OPWORD      $AA16
  1516. _GetCPixel        OPWORD      $AA17
  1517. _GetCTable        OPWORD      $AA18
  1518. _GetForeColor     OPWORD      $AA19
  1519. _GetBackColor     OPWORD      $AA1A
  1520. _GetCCursor       OPWORD      $AA1B
  1521. _SetCCursor       OPWORD      $AA1C
  1522. _AllocCursor      OPWORD      $AA1D
  1523. _GetCIcon         OPWORD      $AA1E
  1524. _PlotCIcon        OPWORD      $AA1F
  1525. _OpenCPicture    OPWORD        $AA20
  1526. _OpColor          OPWORD      $AA21
  1527. _HiliteColor      OPWORD      $AA22
  1528. _CharExtra        OPWORD      $AA23
  1529. _DisposCTable     OPWORD      $AA24
  1530. _DisposeCTable    OPWORD        $AA24
  1531. _DisposCIcon    OPWORD        $AA25
  1532. _DisposeCIcon    OPWORD        $AA25
  1533. _DisposCCursor    OPWORD        $AA26
  1534. _DisposeCCursor    OPWORD        $AA26
  1535. _SeedCFill        OPWORD      $AA50
  1536. _CalcCMask        OPWORD      $AA4F
  1537. _CopyDeepMask    OPWORD      $AA51
  1538.  
  1539. ; Routines for video devices
  1540.  
  1541. _GetMaxDevice     OPWORD      $AA27
  1542. _GetCTSeed        OPWORD      $AA28
  1543. _GetDeviceList    OPWORD      $AA29
  1544. _GetMainDevice    OPWORD      $AA2A
  1545. _GetNextDevice    OPWORD      $AA2B
  1546. _TestDeviceAttribute OPWORD   $AA2C
  1547. _SetDeviceAttribute OPWORD    $AA2D
  1548. _InitGDevice      OPWORD      $AA2E
  1549. _NewGDevice       OPWORD      $AA2F
  1550. _DisposGDevice    OPWORD      $AA30
  1551. _DisposeGDevice    OPWORD        $AA30
  1552. _SetGDevice       OPWORD      $AA31
  1553. _GetGDevice       OPWORD      $AA32
  1554. _DeviceLoop        OPWORD        $ABCA
  1555.  
  1556. ; Color Manager
  1557.  
  1558. _Color2Index      OPWORD      $AA33
  1559. _Index2Color      OPWORD      $AA34
  1560. _InvertColor      OPWORD      $AA35
  1561. _RealColor        OPWORD      $AA36
  1562. _GetSubTable      OPWORD      $AA37
  1563. _UpdatePixMap     OPWORD      $AA38
  1564.  
  1565. ; Dialog Manager
  1566.  
  1567. _NewCDialog       OPWORD      $AA4B
  1568.  
  1569. _MakeITable       OPWORD      $AA39
  1570. _AddSearch        OPWORD      $AA3A
  1571. _AddComp          OPWORD      $AA3B
  1572. _SetClientID      OPWORD      $AA3C
  1573. _ProtectEntry     OPWORD      $AA3D
  1574. _ReserveEntry     OPWORD      $AA3E
  1575. _SetEntries       OPWORD      $AA3F
  1576. _QDError          OPWORD      $AA40
  1577. _SaveEntries      OPWORD      $AA49
  1578. _RestoreEntries   OPWORD      $AA4A
  1579. _DelSearch        OPWORD      $AA4C
  1580. _DelComp          OPWORD      $AA4D
  1581. _SetStdCProcs     OPWORD      $AA4E
  1582. _StdOpcodeProc    OPWORD      $ABF8
  1583.  
  1584. ; added to Toolbox for color
  1585.  
  1586. _SetWinColor      OPWORD      $AA41
  1587. _GetAuxWin        OPWORD      $AA42
  1588. _SetCtlColor      OPWORD      $AA43
  1589. _GetAuxCtl        OPWORD      $AA44
  1590. _NewCWindow       OPWORD      $AA45
  1591. _GetNewCWindow    OPWORD      $AA46
  1592. _SetDeskCPat      OPWORD      $AA47
  1593. _GetCWMgrPort     OPWORD      $AA48
  1594. _GetCVariant      OPWORD      $A809
  1595. _GetWVariant      OPWORD      $A80A
  1596.  
  1597. ; added to Menu Manager for color
  1598.  
  1599. _DelMCEntries     OPWORD      $AA60
  1600. _GetMCInfo        OPWORD      $AA61
  1601. _SetMCInfo        OPWORD      $AA62
  1602. _DispMCInfo       OPWORD      $AA63
  1603. _GetMCEntry       OPWORD      $AA64
  1604. _SetMCEntries     OPWORD      $AA65
  1605.  
  1606. ; Menu Manager
  1607.  
  1608. _MenuChoice       OPWORD      $AA66
  1609.  
  1610. ; Dialog Manager?
  1611.  
  1612. _ModalDialogMenuSetup OPWORD $AA67
  1613. _DialogDispatch    OPWORD      $AA68
  1614.  
  1615. ; Font Manager
  1616.  
  1617. _SetFractEnable    OPWORD      $A814
  1618. _FontDispatch     OPWORD        $A854
  1619.  
  1620. selectIsOutline                EQU        0
  1621. selectSetOutlinePreferred    EQU        1
  1622. selectGetOutlinePreferred    EQU        9
  1623. selectOutlineMetrics        EQU        8
  1624. selectSetPreserveGlyph        EQU        $A
  1625. selectGetPreserveGlyph        EQU        $B
  1626. selectFlushFonts            EQU        $C
  1627.  
  1628.         MACRO
  1629.         _IsOutline
  1630.             DoDispatch _FontDispatch,selectIsOutline
  1631.         ENDM
  1632.  
  1633.         MACRO
  1634.         _SetOutlinePreferred
  1635.             DoDispatch _FontDispatch,selectSetOutlinePreferred
  1636.         ENDM
  1637.  
  1638.         MACRO
  1639.         _GetOutlinePreferred
  1640.             DoDispatch _FontDispatch,selectGetOutlinePreferred
  1641.         ENDM
  1642.  
  1643.         MACRO
  1644.         _OutlineMetrics
  1645.             DoDispatch _FontDispatch,selectOutlineMetrics
  1646.         ENDM
  1647.  
  1648.         MACRO
  1649.         _SetPreserveGlyph
  1650.             DoDispatch _FontDispatch,selectSetPreserveGlyph
  1651.         ENDM
  1652.  
  1653.         MACRO
  1654.         _GetPreserveGlyph
  1655.             DoDispatch _FontDispatch,selectGetPreserveGlyph
  1656.         ENDM
  1657.  
  1658.         MACRO
  1659.         _FlushFonts
  1660.             DoDispatch _FontDispatch,selectFlushFonts
  1661.         ENDM
  1662.  
  1663. ; Palette Manager
  1664.  
  1665. _InitPalettes     OPWORD      $AA90
  1666. _NewPalette       OPWORD      $AA91
  1667. _GetNewPalette    OPWORD      $AA92
  1668. _DisposePalette    OPWORD      $AA93
  1669. _ActivatePalette OPWORD      $AA94
  1670. _SetPalette       OPWORD      $AA95
  1671. _GetPalette       OPWORD      $AA96
  1672. _PmForeColor      OPWORD      $AA97
  1673. _PmBackColor      OPWORD      $AA98
  1674. _AnimateEntry     OPWORD      $AA99
  1675. _AnimatePalette    OPWORD      $AA9A
  1676. _GetEntryColor    OPWORD      $AA9B
  1677. _SetEntryColor    OPWORD      $AA9C
  1678. _GetEntryUsage    OPWORD      $AA9D
  1679. _SetEntryUsage    OPWORD      $AA9E
  1680. _CTab2Palette     OPWORD      $AA9F
  1681. _Palette2CTab     OPWORD      $AAA0
  1682. _CopyPalette      OPWORD      $AAA1
  1683. _PaletteDispatch OPWORD        $AAA2
  1684.  
  1685. ; PaletteDispatch selectors
  1686.  
  1687. selectEntry2Index        EQU     0
  1688. selectRestoreDeviceClut EQU     2
  1689. selectResizePalette     EQU     3
  1690. selectZapLinks            EQU     4
  1691. selectWhatPal            EQU        5
  1692. selectDeltaRGB            EQU        10
  1693. selectNewHiliteColor    EQU     11
  1694. selectPMgrExit            EQU     12
  1695. selectSaveFore            EQU     13
  1696. selectSaveBack            EQU     14
  1697. selectRestoreFore        EQU     15
  1698. selectRestoreBack        EQU     16
  1699. selectReleaseList        EQU     18
  1700. selectSetDepth            EQU     19
  1701. selectHasDepth            EQU     20
  1702. selectPMgrVersion        EQU     21
  1703. selectSetPaletteUpdates    EQU        22
  1704. selectGetPaletteUpdates    EQU        23
  1705. selectCheckColors        EQU        24
  1706. selectGetGray            EQU        25
  1707.  
  1708.         MACRO
  1709.         _Entry2Index
  1710.             DoDispatch _PaletteDispatch,selectEntry2Index,0
  1711.         ENDM
  1712.  
  1713.         MACRO
  1714.         _RestoreDeviceClut
  1715.             DoDispatch _PaletteDispatch,selectRestoreDeviceClut,0
  1716.         ENDM
  1717.  
  1718.         MACRO
  1719.         _ResizePalette
  1720.             DoDispatch _PaletteDispatch,selectResizePalette,0
  1721.         ENDM
  1722.  
  1723.         MACRO
  1724.         _ZapLinks
  1725.             DoDispatch _PaletteDispatch,selectZapLinks,0
  1726.         ENDM
  1727.  
  1728.         MACRO
  1729.         _WhatPal
  1730.             DoDispatch _PaletteDispatch,selectWhatPal,4
  1731.         ENDM
  1732.  
  1733.         MACRO
  1734.         _DeltaRGB
  1735.             DoDispatch _PaletteDispatch,selectDeltaRGB,8
  1736.         ENDM
  1737.  
  1738.         MACRO
  1739.         _NewHiliteColor
  1740.             DoDispatch _PaletteDispatch,selectNewHiliteColor,0
  1741.         ENDM
  1742.  
  1743.         MACRO
  1744.         _PMgrExit
  1745.             DoDispatch _PaletteDispatch,selectPMgrExit,0
  1746.         ENDM
  1747.  
  1748.         MACRO
  1749.         _SaveFore
  1750.             DoDispatch _PaletteDispatch,selectSaveFore,4
  1751.         ENDM
  1752.  
  1753.         MACRO
  1754.         _SaveBack
  1755.             DoDispatch _PaletteDispatch,selectSaveBack,4
  1756.         ENDM
  1757.  
  1758.         MACRO
  1759.         _RestoreFore
  1760.             DoDispatch _PaletteDispatch,selectRestoreFore,4
  1761.         ENDM
  1762.  
  1763.         MACRO
  1764.         _RestoreBack
  1765.             DoDispatch _PaletteDispatch,selectRestoreBack,4
  1766.         ENDM
  1767.  
  1768.         MACRO
  1769.         _ReleaseList
  1770.             DoDispatch _PaletteDispatch,selectReleaseList,4
  1771.         ENDM
  1772.  
  1773.         MACRO
  1774.         _SetDepth
  1775.             DoDispatch _PaletteDispatch,selectSetDepth,10
  1776.         ENDM
  1777.  
  1778.         MACRO
  1779.         _HasDepth
  1780.             DoDispatch _PaletteDispatch,selectHasDepth,10
  1781.         ENDM
  1782.  
  1783.         MACRO
  1784.         _PMgrVersion
  1785.             DoDispatch _PaletteDispatch,selectPMgrVersion,0
  1786.         ENDM
  1787.  
  1788.         MACRO
  1789.         _SetPaletteUpdates
  1790.             DoDispatch _PaletteDispatch,selectSetPaletteUpdates,6
  1791.         ENDM
  1792.  
  1793.         MACRO
  1794.         _CheckColors
  1795.             DoDispatch _PaletteDispatch,selectCheckColors,12
  1796.         ENDM
  1797.  
  1798.         MACRO
  1799.         _GetGray
  1800.             DoDispatch _PaletteDispatch,selectGetGray,12
  1801.         ENDM
  1802.  
  1803. ; Sound Manager
  1804.  
  1805. _SoundDispatch    OPWORD        $A800
  1806. _SndDisposeChannel OPWORD     $A801
  1807. _SndAddModifier    OPWORD      $A802
  1808. _SndDoCommand     OPWORD      $A803
  1809. _SndDoImmediate    OPWORD      $A804
  1810. _SndPlay          OPWORD      $A805
  1811. _SndControl       OPWORD      $A806
  1812. _SndNewChannel    OPWORD      $A807
  1813.  
  1814.         MACRO
  1815.         _SndSoundManagerVersion
  1816.         MOVE.L    #$000C0008,D0
  1817.         _SoundDispatch
  1818.         ENDM
  1819.  
  1820.         MACRO
  1821.         _SndStartFilePlay
  1822.         MOVE.L    #$0D000008,D0
  1823.         _SoundDispatch
  1824.         ENDM
  1825.  
  1826.         MACRO
  1827.         _SndPauseFilePlay
  1828.         MOVE.L    #$02040008,D0
  1829.         _SoundDispatch
  1830.         ENDM
  1831.  
  1832.         MACRO
  1833.         _SndStopFilePlay
  1834.         MOVE.L    #$03080008,D0
  1835.         _SoundDispatch
  1836.         ENDM
  1837.  
  1838.         MACRO
  1839.         _SndChannelStatus
  1840.         MOVE.L    #$00100008,D0
  1841.         _SoundDispatch
  1842.         ENDM
  1843.  
  1844.         MACRO
  1845.         _SndManagerStatus
  1846.         MOVE.L    #$00140008,D0
  1847.         _SoundDispatch
  1848.         ENDM
  1849.  
  1850.         MACRO
  1851.         _SndGetSysBeepState
  1852.         MOVE.L    #$00180008,D0
  1853.         _SoundDispatch
  1854.         ENDM
  1855.  
  1856.         MACRO
  1857.         _SndSetSysBeepState
  1858.         MOVE.L    #$001C0008,D0
  1859.         _SoundDispatch
  1860.         ENDM
  1861.  
  1862.         MACRO
  1863.         _SndPlayDoubleBuffer
  1864.         MOVE.L    #$00200008,D0
  1865.         _SoundDispatch
  1866.         ENDM
  1867.  
  1868.         MACRO
  1869.         _SndGetBufferStufferLoad
  1870.         MOVE.L    #$00240008,D0
  1871.         _SoundDispatch
  1872.         ENDM
  1873.  
  1874.         MACRO
  1875.         _SndGetMixerLoad
  1876.         MOVE.L    #$00280008,D0
  1877.         _SoundDispatch
  1878.         ENDM
  1879.  
  1880.         MACRO
  1881.         _MACEVersion
  1882.         MOVE.L    #$00000010,D0
  1883.         _SoundDispatch
  1884.         ENDM
  1885.  
  1886.         MACRO
  1887.         _Comp3to1
  1888.         MOVE.L    #$00040010,D0
  1889.         _SoundDispatch
  1890.         ENDM
  1891.  
  1892.         MACRO
  1893.         _Exp1to3
  1894.         MOVE.L    #$00080010,D0
  1895.         _SoundDispatch
  1896.         ENDM
  1897.  
  1898.         MACRO
  1899.         _Comp6to1
  1900.         MOVE.L    #$000C0010,D0
  1901.         _SoundDispatch
  1902.         ENDM
  1903.  
  1904.         MACRO
  1905.         _Exp1to6
  1906.         MOVE.L    #$00100010,D0
  1907.         _SoundDispatch
  1908.         ENDM
  1909.  
  1910.         MACRO
  1911.         _SPBVersion
  1912.         MOVE.L    #$00000014,D0
  1913.         _SoundDispatch
  1914.         ENDM
  1915.  
  1916.         MACRO
  1917.         _SndRecord
  1918.         MOVE.L    #$08040014,D0
  1919.         _SoundDispatch
  1920.         ENDM
  1921.  
  1922.         MACRO
  1923.         _SndRecordToFile
  1924.         MOVE.L    #$07080014,D0
  1925.         _SoundDispatch
  1926.         ENDM
  1927.  
  1928.         MACRO
  1929.         _SPBSignInDevice
  1930.         MOVE.L    #$030C0014,D0
  1931.         _SoundDispatch
  1932.         ENDM
  1933.  
  1934.         MACRO
  1935.         _SPBSignOutDevice
  1936.         MOVE.L    #$01100014,D0
  1937.         _SoundDispatch
  1938.         ENDM
  1939.  
  1940.         MACRO
  1941.         _SPBGetIndexedDevice
  1942.         MOVE.L    #$05140014,D0
  1943.         _SoundDispatch
  1944.         ENDM
  1945.  
  1946.         MACRO
  1947.         _SPBOpenDevice
  1948.         MOVE.L    #$05180014,D0
  1949.         _SoundDispatch
  1950.         ENDM
  1951.  
  1952.         MACRO
  1953.         _SPBCloseDevice
  1954.         MOVE.L    #$021C0014,D0
  1955.         _SoundDispatch
  1956.         ENDM
  1957.  
  1958.         MACRO
  1959.         _SPBRecord
  1960.         MOVE.L    #$03200014,D0
  1961.         _SoundDispatch
  1962.         ENDM
  1963.  
  1964.         MACRO
  1965.         _SPBRecordToFile
  1966.         MOVE.L    #$04240014,D0
  1967.         _SoundDispatch
  1968.         ENDM
  1969.  
  1970.         MACRO
  1971.         _SPBPauseRecording
  1972.         MOVE.L    #$02280014,D0
  1973.         _SoundDispatch
  1974.         ENDM
  1975.  
  1976.         MACRO
  1977.         _SPBResumeRecording
  1978.         MOVE.L    #$022C0014,D0
  1979.         _SoundDispatch
  1980.         ENDM
  1981.  
  1982.         MACRO
  1983.         _SPBStopRecording
  1984.         MOVE.L    #$02300014,D0
  1985.         _SoundDispatch
  1986.         ENDM
  1987.  
  1988.         MACRO
  1989.         _SPBGetRecordingStatus
  1990.         MOVE.L    #$0E340014,D0
  1991.         _SoundDispatch
  1992.         ENDM
  1993.  
  1994.         MACRO
  1995.         _SPBGetDeviceInfo
  1996.         MOVE.L    #$06380014,D0
  1997.         _SoundDispatch
  1998.         ENDM
  1999.  
  2000.         MACRO
  2001.         _SPBSetDeviceInfo
  2002.         MOVE.L    #$063C0014,D0
  2003.         _SoundDispatch
  2004.         ENDM
  2005.  
  2006.         MACRO
  2007.         _SPBMilliSecondsToBytes
  2008.         MOVE.L    #$04400014,D0
  2009.         _SoundDispatch
  2010.         ENDM
  2011.  
  2012.         MACRO
  2013.         _SPBBytesToMilliSeconds
  2014.         MOVE.L    #$04440014,D0
  2015.         _SoundDispatch
  2016.         ENDM
  2017.  
  2018.         MACRO
  2019.         _SetupSndHeader
  2020.         MOVE.L    #$0D480014,D0
  2021.         _SoundDispatch
  2022.         ENDM
  2023.  
  2024.         MACRO
  2025.         _SetupAIFFHeader
  2026.         MOVE.L    #$0B4C0014,D0
  2027.         _SoundDispatch
  2028.         ENDM
  2029.  
  2030. _SlotManager      OPWORD      $A06E
  2031. _ScriptUtil       OPWORD      $A8B5
  2032. _SCSIDispatch     OPWORD      $A815
  2033. _Long2Fix         OPWORD      $A83F
  2034. _Fix2Long         OPWORD      $A840
  2035. _Fix2Frac         OPWORD      $A841
  2036. _Frac2Fix         OPWORD      $A842
  2037. _Fix2X            OPWORD      $A843
  2038. _X2Fix            OPWORD      $A844
  2039. _Frac2X           OPWORD      $A845
  2040. _X2Frac           OPWORD      $A846
  2041. _NMInstall        OPWORD      $A05E
  2042. _NMRemove         OPWORD      $A05F
  2043.  
  2044. ; All QDOffscreen Routines go through one trap with a selector
  2045.  
  2046. _QDExtensions     OPWORD      $AB1D
  2047.  
  2048. selectNewGWorld             EQU $00160000
  2049. selectLockPixels            EQU $00040001
  2050. selectUnlockPixels            EQU $00040002
  2051. selectUpdateGWorld            EQU $00160003
  2052. selectDisposeGWorld         EQU $00040004
  2053. selectGetGWorld             EQU $00080005
  2054. selectSetGWorld             EQU $00080006
  2055. selectCTabChanged            EQU $00040007
  2056. selectPixPatChanged         EQU $00040008
  2057. selectPortChanged            EQU $00040009
  2058. selectGDeviceChanged        EQU $0004000a
  2059. selectAllowPurgePixels        EQU $0004000b
  2060. selectNoPurgePixels         EQU $0004000c
  2061. selectGetPixelsState        EQU $0004000d
  2062. selectSetPixelsState        EQU $0008000e
  2063. selectGetPixBaseAddr        EQU $0004000f
  2064. selectNewScreenBuffer        EQU $000e0010
  2065. selectDisposeScreenBuffer    EQU $00040011
  2066. selectGetGWorldDevice        EQU $00040012
  2067. selectQDDone                EQU $00040013
  2068. selectOffscreenVersion        EQU $00000014
  2069. selectNewTempScreenBuffer    EQU $000e0015
  2070. selectPixMap32Bit            EQU    $00040016
  2071. selectGetGWorldPixMap        EQU    $00040017
  2072.  
  2073.         MACRO
  2074.         DoQDExtensionsDispatch &selector
  2075.         lcla &value
  2076.         &value: seta &eval(&selector)
  2077.         move.l    #&value,d0
  2078.         _QDExtensions
  2079.         ENDM
  2080.  
  2081.         MACRO
  2082.         _NewGWorld
  2083.         DoQDExtensionsDispatch selectNewGWorld
  2084.         ENDM
  2085.  
  2086.         MACRO
  2087.         _LockPixels
  2088.         DoQDExtensionsDispatch selectLockPixels
  2089.         ENDM
  2090.  
  2091.         MACRO
  2092.         _UnlockPixels
  2093.         DoQDExtensionsDispatch selectUnlockPixels
  2094.         ENDM
  2095.  
  2096.         MACRO
  2097.         _UpdateGWorld
  2098.         DoQDExtensionsDispatch selectUpdateGWorld
  2099.         ENDM
  2100.  
  2101.         MACRO
  2102.         _DisposeGWorld
  2103.         DoQDExtensionsDispatch selectDisposeGWorld
  2104.         ENDM
  2105.  
  2106.         MACRO
  2107.         _GetGWorld
  2108.         DoQDExtensionsDispatch selectGetGWorld
  2109.         ENDM
  2110.  
  2111.         MACRO
  2112.         _SetGWorld
  2113.         DoQDExtensionsDispatch selectSetGWorld
  2114.         ENDM
  2115.  
  2116.         MACRO
  2117.         _CTabChanged
  2118.         DoQDExtensionsDispatch selectCTabChanged
  2119.         ENDM
  2120.  
  2121.         MACRO
  2122.         _PixPatChanged
  2123.         DoQDExtensionsDispatch selectPixPatChanged
  2124.         ENDM
  2125.  
  2126.         MACRO
  2127.         _PortChanged
  2128.         DoQDExtensionsDispatch selectPortChanged
  2129.         ENDM
  2130.  
  2131.         MACRO
  2132.         _GDeviceChanged
  2133.         DoQDExtensionsDispatch selectGDeviceChanged
  2134.         ENDM
  2135.  
  2136.         MACRO
  2137.         _AllowPurgePixels
  2138.         DoQDExtensionsDispatch selectAllowPurgePixels
  2139.         ENDM
  2140.  
  2141.         MACRO
  2142.         _NoPurgePixels
  2143.         DoQDExtensionsDispatch selectNoPurgePixels
  2144.         ENDM
  2145.  
  2146.         MACRO
  2147.         _GetPixelsState
  2148.         DoQDExtensionsDispatch selectGetPixelsState
  2149.         ENDM
  2150.  
  2151.         MACRO
  2152.         _SetPixelsState
  2153.         DoQDExtensionsDispatch selectSetPixelsState
  2154.         ENDM
  2155.  
  2156.         MACRO
  2157.         _GetPixBaseAddr
  2158.         DoQDExtensionsDispatch selectGetPixBaseAddr
  2159.         ENDM
  2160.  
  2161.         MACRO
  2162.         _NewScreenBuffer
  2163.         DoQDExtensionsDispatch selectNewScreenBuffer
  2164.         ENDM
  2165.  
  2166.         MACRO
  2167.         _DisposeScreenBuffer
  2168.         DoQDExtensionsDispatch selectDisposeScreenBuffer
  2169.         ENDM
  2170.  
  2171.         MACRO
  2172.         _GetGWorldDevice
  2173.         DoQDExtensionsDispatch selectGetGWorldDevice
  2174.         ENDM
  2175.  
  2176.         MACRO
  2177.         _QDDone
  2178.         DoQDExtensionsDispatch selectQDDone
  2179.         ENDM
  2180.  
  2181.         MACRO
  2182.         _OffscreenVersion
  2183.         moveq    #selectOffscreenVersion,d0
  2184.         _QDExtensions
  2185.         ENDM
  2186.  
  2187.         MACRO
  2188.         _NewTempScreenBuffer
  2189.         DoQDExtensionsDispatch selectNewTempScreenBuffer
  2190.         ENDM
  2191.  
  2192.         MACRO
  2193.         _Pixmap32Bit
  2194.         DoQDExtensionsDispatch selectPixmap32Bit
  2195.         ENDM
  2196.  
  2197.         MACRO
  2198.         _GetGWorldPixMap
  2199.         DoQDExtensionsDispatch selectGetGWorldPixMap
  2200.         ENDM
  2201.  
  2202. ; Calls to symbolic debugger or MacsBug
  2203.  
  2204.         MACRO
  2205.         _SysBreak
  2206.         MOVE.W #-490, D0
  2207.         _SysError
  2208.         ENDM
  2209.  
  2210.         MACRO
  2211.         _SysBreakStr
  2212.         MOVE.W #-491, D0
  2213.         _SysError
  2214.         ENDM
  2215.  
  2216.         MACRO
  2217.         _SysBreakFunc
  2218.         MOVE.W #-492, D0
  2219.         _SysError
  2220.         ENDM
  2221.  
  2222. ; HwPriv macros
  2223.  
  2224.         MACRO
  2225.         _DisableInstructionCache
  2226.         moveq       #0,d0
  2227.         movea.l     d0,a0
  2228.         _HwPriv
  2229.         ENDM
  2230.  
  2231.         MACRO
  2232.         _EnableInstructionCache
  2233.         moveq       #0,d0
  2234.         movea.w     #1,a0
  2235.         _HwPriv
  2236.         ENDM
  2237.  
  2238.         MACRO
  2239.         _FlushInstructionCache
  2240.         moveq       #1,d0
  2241.         _HwPriv
  2242.         ENDM
  2243.  
  2244.         MACRO
  2245.         _DisableDataCache
  2246.         moveq       #2,d0
  2247.         suba.l a0,a0
  2248.         _HwPriv
  2249.         ENDM
  2250.  
  2251.         MACRO
  2252.         _EnableDataCache
  2253.         moveq       #2,d0
  2254.         movea.l     d0,a0
  2255.         _HwPriv
  2256.         ENDM
  2257.  
  2258.         MACRO
  2259.         _FlushDataCache
  2260.         moveq       #3,d0
  2261.         _HwPriv
  2262.         ENDM
  2263.  
  2264. ; UserDelay
  2265.  
  2266. _UserDelay        OPWORD      $A84C
  2267.  
  2268. selectScrollDelay        EQU 0
  2269. paramWordsScrollDelay    EQU    5
  2270.  
  2271.         MACRO
  2272.         _ScrollDelay
  2273.         DoDispatch    _UserDelay,selectScrollDelay,paramWordsScrollDelay
  2274.         ENDM
  2275.  
  2276. ; Picture Utilities
  2277.  
  2278. selectGetPictInfo            EQU    0
  2279. paramWordsGetPictInfo        EQU    8
  2280.  
  2281. selectGetPixMapInfo            EQU    1
  2282. paramWordsGetPixMapInfo        EQU    8
  2283.  
  2284. selectNewPictInfo            EQU    2
  2285. paramWordsNewPictInfo        EQU    6
  2286.  
  2287. selectRecordPictInfo        EQU    3
  2288. paramWordsRecordPictInfo    EQU    4
  2289.  
  2290. selectRecordPixMapInfo        EQU    4
  2291. paramWordsRecordPixMapInfo    EQU    4
  2292.  
  2293. selectRetrievePictInfo        EQU    5
  2294. paramWordsRetrievePictInfo    EQU    5
  2295.  
  2296. selectDisposePictInfo        EQU    6
  2297. paramWordsDisposePictInfo    EQU    2
  2298.  
  2299.         MACRO
  2300.         _GetPictInfo
  2301.             DoDispatch _Pack15,selectGetPictInfo,paramWordsGetPictInfo
  2302.         ENDM
  2303.  
  2304.         MACRO
  2305.         _GetPixMapInfo
  2306.             DoDispatch _Pack15,selectGetPixMapInfo,paramWordsGetPixMapInfo
  2307.         ENDM
  2308.  
  2309.         MACRO
  2310.         _NewPictInfo
  2311.             DoDispatch _Pack15,selectNewPictInfo,paramWordsNewPictInfo
  2312.         ENDM
  2313.  
  2314.         MACRO
  2315.         _RecordPictInfo
  2316.             DoDispatch _Pack15,selectRecordPictInfo,paramWordsRecordPictInfo
  2317.         ENDM
  2318.  
  2319.         MACRO
  2320.         _RecordPixMapInfo
  2321.             DoDispatch _Pack15,selectRecordPixMapInfo,paramWordsRecordPixMapInfo
  2322.         ENDM
  2323.  
  2324.         MACRO
  2325.         _RetrievePictInfo
  2326.             DoDispatch _Pack15,selectRetrievePictInfo,paramWordsRetrievePictInfo
  2327.         ENDM
  2328.  
  2329.         MACRO
  2330.         _DisposPictInfo
  2331.             DoDispatch _Pack15,selectDisposePictInfo,paramWordsDisposePictInfo
  2332.         ENDM
  2333.  
  2334.         MACRO
  2335.         _DisposePictInfo
  2336.             DoDispatch _Pack15,selectDisposePictInfo,paramWordsDisposePictInfo
  2337.         ENDM
  2338.  
  2339.     ENDIF    ; already included...
  2340.